/**
 * 路由的配置
 */
export default [
  {
    path: '/',
    component: '@/layouts/BasicLayout',
    routes: [
      { path: '/', redirect: '/app1' },

      {
        path: '/home',
        component: '@/pages/Home',
      },


      {
        path: '/',
        component: '@/layouts/MenuLayout',
        routes: [

  
          /**************微服务配置*************/
          // {
          //   path: '/app1',
          //   microApp: 'app1',
          //   microAppProps: {
          //     autoSetLoading: false,       //loading
          //     className: 'appClassName',    //微应用容器 class
          //   }
          // },

          // 微应用2 (组件方式引入子应用)
          {
            path: '/app1',
            exact: false,
            component: '@/pages/microApps/app1/index.js',
          },

          {
            path: '/app2',
            exact: false,
            component: '@/pages/microApps/app2/index.js',
          },



        ]
      },







    ],
  },
];
